package chapter_8.map;

import java.util.HashMap;

public class Test {

    public static void main(String[] args) {
        HashMap<String,String> map = new HashMap<>();
        map.put("name","学生管理系统");
        map.put("port","8080");
        for (String key : map.keySet()) {
            System.out.println(key);
        }
        for (String value : map.values()) {
            System.out.println(value);
        }
//        map.clear();
//        System.out.println(map.isEmpty());
//        System.out.println(map.containsKey("name"));
//        System.out.println(map.containsValue("8080"));
//        System.out.println(map);
//        map.clear();
//        System.out.println(map);
//        System.out.println(map.size());
//        System.out.println(map);
//        map.remove("name");
//        System.out.println(map);

    }
}
